<?php

use backend\models\ArticleCategory;
use yii\bootstrap\Html;
use yii\widgets\ActiveForm;

$this->title= "添加分类";

$this->params['breadcrumbs'][]= ['label'=>\Yii::$app->controller->id,'url'=>['article-category/index']];

$this->params['breadcrumbs'][] = ['label'=>'文章分类列表','url'=>['article-category/list']];

$this->params['breadcrumbs'][] = $this->title;

$form =  ActiveForm::begin();

echo $form->field($model,'name');
echo $form->field($model,'status')->radioList(ArticleCategory::$statusValue);
echo $form->field($model,'sort');
echo $form->field($model,'is_help')->radioList(ArticleCategory::$isHelpFile);
echo $form->field($model,'intro')->textarea();

echo Html::submitButton('提交',['class'=>'btn btn-success']);

ActiveForm::end();
